<?php

App::uses('AppModel', 'Model');

/**
 * Pedido Model
 *
 * @property User $User
 * @property Porcentaje $Porcentaje
 * @property Facturacione $Facturacione
 * @property Movimiento $Movimiento
 */
class Pedido extends AppModel
{
    //The Associations below have been created with all possible keys, those that are not needed can be removed

    /**
     * belongsTo associations
     *
     * @var array
     */
    public $belongsTo = array(
        'User' => array(
            'className' => 'User',
            'foreignKey' => 'user_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'Porcentaje' => array(
            'className' => 'Porcentaje',
            'foreignKey' => 'porcentaje_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );

    /**
     * hasMany associations
     *
     * @var array
     */
    public $hasMany = array(
        'Facturacione' => array(
            'className' => 'Facturacione',
            'foreignKey' => 'pedido_id',
            'dependent' => false,
            'conditions' => '',
            'fields' => '',
            'order' => '',
            'limit' => '',
            'offset' => '',
            'exclusive' => '',
            'finderQuery' => '',
            'counterQuery' => ''
        ),
        'Movimiento' => array(
            'className' => 'Movimiento',
            'foreignKey' => 'pedido_id',
            'dependent' => false,
            'conditions' => '',
            'fields' => '',
            'order' => '',
            'limit' => '',
            'offset' => '',
            'exclusive' => '',
            'finderQuery' => '',
            'counterQuery' => ''
        )
    );

}
